#include "const.h"

const char *v_array_expand_i(var_t v) {
	if (!v)
		return "";

	if (~v->flags & VAR_EXPANDEDI_BIT) {
		snprintf(v->array.i_text, sizeof(v->array.i_text)-1, "%u",
			(unsigned int)v->array.i);
		v->array.i_text[sizeof(v->array.i_text)-1] = 0;

		v->flags |= VAR_EXPANDEDI_BIT;
	}

	return v->array.i_text;
}
